﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Domain;

namespace Dao.Interface
{
    public interface IMobilePageRepository : IRepository<MobilePage>
    {
        /// <summary>
        /// 获取手机页分页集合
        /// </summary>
        /// <param name="userID">用户ID</param>
        /// <param name="pageIndex">页索引</param>
        /// <param name="pageSize">页大小</param>
        /// <param name="pageCount">总页数</param>
        /// <param name="delete">是否删除</param>
        /// <returns></returns>
        IQueryable<MobilePage> LoadAllMobilePageByPage(int userID, int pageIndex, int pageSize, out int pageCount, bool delete);

        /// <summary>
        /// 获取手机页集合
        /// </summary>
        /// <param name="userID">用户ID</param>
        /// <param name="delete">是否删除</param>
        /// <returns></returns>
        IList<MobilePage> LoadAllMobilePage(object userID, bool delete);
    }
}
